package com.zxx.pattern.compositePattern.composite2;

import java.util.List;

/**
 * @author zxx on 2021/5/20
 */
public interface Component2 {

    void doSomething();

    void add(Component2 component);

    void remove(Component2 component);

    List<Component2> getAll();

}
